package com.etc.order.common.service;

import com.etc.order.common.domain.ProductCategory;

import java.util.List;

public interface ProductCategoryService {

    /**
     * 获取所有商品类目名(分页)
     * @param pageIndex
     * @param pageSize
     * @return
     */
    public List<ProductCategory> findAllProductCategory(int pageIndex,int pageSize);

    /** by lw **/
    List<ProductCategory> getType();

    List<ProductCategory> findByCategoryType(int categoryType);

    int getTotalCount(String categoryName);

    int getTotalCount();

    List<ProductCategory> findByCategoryName(String categoryName, int pageIndex, int pageSize);

    ProductCategory getOne(int categoryId);

    int save(ProductCategory category);

    int delete(int categoryId);
}
